<template>
  <div id="content">
    <div class="bg-img">
    </div>
    <a name="home"></a>
    <div id="container">
      <div class="home-style container-block">
        <h1 class="text-center font-style text-title">niyueling's Blog Website</h1>
        <h3 class="text-center text-gist">目前从事NodeJS服务端开发，喜欢自己捣鼓研究技术。创建此博客网站初中在于记录自己的学习历程，若能给你带来帮助更是我的幸运!</h3>
        <hr class="home-intro-divider" />
        <div class="home-btn-style">
          <a href="#" target="blank" class="btn-position home-btn btn-style ">
            <i class="fa fa-twitter fa-fw"></i>
            <span class="network-name" @mouseenter="showWxImage(1)" @mouseleave="hideWxImage()">
              <strong>QQ</strong>
            </span>
          </a>
          <a href="#" target="blank" class="btn-position home-btn btn-style">
          <i class="fa fa-github fa-fw"></i><span class="network-name" @mouseenter="showWxImage(2)" @mouseleave="hideWxImage()"><strong>WeChat</strong></span></a>
          <a href="#" target="blank"
            class="btn-position home-btn btn-style "><i class="fa fa-linkedin fa-fw"></i><span
              class="network-name " @mouseenter="showWxImage(3)" @mouseleave="hideWxImage()"><strong>微信公众号</strong></span></a>
          <a href="#" target="blank"
            class="btn-position home-btn freecode-btn btn-style"><i class="fa fa-fire fa-fw"></i><span
              class="network-name" @mouseenter="showWxImage(4)" @mouseleave="hideWxImage()"><strong>简书</strong></span></a>
          <div class="default_img"><img class="default_img" v-if="flag" :src='img'></div>
        </div>
      </div>
      <a name="about"></a>
      <div class="about-style container-block">
        <div class="about-introduce">
          <h2>创建网站的初衷</h2>
          <p class="about-introduce-seay">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其实，一开始搭建博客网站，只是想拥有一个自己的独立网站，这让我觉得很酷。这个版本是v1.3.0了。我现在的想法其实是能够将自己的博客长久发展下去，可以拥有一个专属于自己的平台去畅所欲言。</p>
            <p class="about-introduce-seay">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;去年三月份搭建了v1.0.0版本，使用了jsp搭建博客，但是前后端未分离，维护起来非常困难，直到有一次文章评论区出现了一堆的undefine，我觉得是时候放弃jsp了，第一个版本随即下架停止维护。</p>
            <p class="about-introduce-seay">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;第二个版本使用了Angular + NodeJS搭建，使用了一系列第三方插件，而且进行了响应式布局，但是由于在手机端一直出现有部分机型不适配，所以迟迟没有上线使用。最终我还是决定放弃v1.2.0版本。</p>
            <p class="about-introduce-seay">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;目前正在开发的v1.3.0版本使用了Vue + NodeJS搭建，而且放弃了响应式，因为发布文章使用了MarkJS插件在手机端不适配。所以这个版本准备开发一个专职于PC端的博客网站。并有意向针对用户设计专属于自己的博客后台。</p>
            <p class="about-introduce-seay">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预计在一个月左右先上线一个初级版，然后对功能慢慢进行优化。希望可以成为一个共享型平台。</p>
        </div>
        <div class="about-people-img">
          <img class="about-smaller-img" src="./../assets/ni.jpg" />
        </div>
      </div>
    </div>

  </div>

</template>

<script>
  export default {
    name: 'article',
    data() {
      return {
        flag: false,
        img: ''
      }
    },
    mounted: function () {

    },
    methods: {
      showWxImage(type) {
        this.flag = true;

        if (type == 1) {
          this.img = 'https://usuz.oss-cn-shenzhen.aliyuncs.com/image/qq.jpg';
        }
        if (type == 2) {
          this.img = 'https://usuz.oss-cn-shenzhen.aliyuncs.com/image/wx.jpg';
        }
        if (type == 3) {
          this.img = 'https://usuz.oss-cn-shenzhen.aliyuncs.com/image/gzh.jpg';
        }
        if (type == 4) {
          this.img = 'https://usuz.oss-cn-shenzhen.aliyuncs.com/image/js.jpg';
        }
      },
      hideWxImage() {
        this.flag = false;
        this.img = '';
      }
    }
  }

</script>

<style scoped>
  .default_img {
    margin-top: 20px;
    border: 0;
    width: 230px;
    height: 250px;
    text-align: center
  }
  html, body {
    padding: 0;
    margin: 0;
  }

  * {
    box-sizing: border-box;
  }

  *:hover {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  a {
    text-decoration: none;
    color: #272822;
  }

  a:hover {
    color: #fff;
  }

  ul {
    list-style-type: none;
    margin-left: 780px;
  }

  li {
    display: inline;
    margin-left: 30px;
  }

  h1 {
    font-size: 60px;
    color: #B8B7B6;
    line-height: 1.1;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 30px;
  }

  .text-center {
    text-align: center;
    color: white;
  }

  .text-gist {
    font-size: 20px;
    margin-bottom: 80px;
  }

  .font-style {
    font-family: Georgia;
    margin-top: 120px;
  }

  .header-nav {
    position: fixed;
    z-index: 1000;
    float: left;
    top: 0;
    left: 0;
    background-color: #8A8A88;
    width: 100%;
  }

  .nav-brand {
    margin-left: 30px;
    float: left;

  }

  .nav-li-style {
    font-size: 19px;
    font-family: Georgia;
    text-align: center;
    color: #000;
  }


  #container {
    width: 1400px;
    height: 3500px;
    position: relative;
    float: left;
  }

  .container-block {
    width: 80%;
    height: 800px;
    margin-left: 110px;
    margin-right: 80px;
  }

  .home-style {
    margin-top: 60px;
    padding-top: 68px;
  }

  .home-intro-divider {
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  .about-style {
    position: relative;
    color: white;
    margin-top: 20px;
  }

  .about-introduce {
    position: absolute;
    width: 400px;
    height: 200px;
    margin-left: 30px;
    font-family: Georgia;

  }

  .about-introduce-seay {
    font-size: 18px;
  }

  .about-people-img {
    position: absolute;
    top: 200px;
    right: 90px;
    width: 400px;
    height: 300px;

  }

  .about-smaller-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
  }

  .portfolio-title {
    position: relative;
    width: 1000px;
    height: 200px;
  }

  .portfolio-block {
    position: relative;
    float: left;
    width: 310px;
    height: 280px;
    background-color: #DADFE1;
    margin: 20px 20px 20px 40px;
    transition: all 0.6s;
    outline: #A19FAC inset 10px;
    text-align: center;
  }

  .portfolio-block:hover {
    box-shadow: 30px 30px 30px rgba(0, 0, 0, 0.9);
  }

  .portfolio-hover {
    position: absolute;
    width: 300px;
    height: 180px;
    transition: all 0.6s;

  }

  .portfolio-hover:hover {
    background: rgba(0, 0, 0, 0.7)none repeat scroll 0 0;
    transition: all 0.6s;
  }

  .portfolio-hover-incon {
    position: absolute;
    width: 300px;
    height: 30px;
    text-align: center;
    margin-top: 40px;

  }

  .portfolio-small-img {
    width: 280px;
    height: 150px;
    margin-left: 10px;
  }

  .portfolio-apply-title {
    background-color: #1C1D1F;
    position: absolute;
    width: 300px;
    height: 90px;
    margin-top: 30px;
    text-align: center;
    color: white;
  }

  .portfolio-apply-title.h4 {
    font-size: 25px;
  }

  .contact-style {
    padding-top: 50px;
  }

  .contact-tip {
    position: relative;
    float: left;
    width: 600px;
    margin-top: 130px;

  }

  .contact-ways {
    position: relative;
    float: right;
    top: 40px;
    width: 350px;
    height: 600px;
  }

  .ul-position {
    position: relative;
    float: right;
    margin-right: 100px;
    margin-top: 130px;
  }

  .home-btn-style {
    margin-left: 180px;
    margin-top: 60px;
  }

  .btn-style {
    background-color: #C0C0C0;
    border: 2px outset #000;
    font-size: 20px;
    border-radius: 4px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 10px 16px;
    margin: 6px;
    transition: all 0.21s;
    letter-spacing: 2px;
  }

  .btn-style:hover {
    background: rgba(0, 0, 0, 0.9) none repeat scroll 0 0;
    border: 2px outset rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
    transform: scale(1.11);
    transition: all 0.21s;
  }

  .portfolio-font {
    font-family: Georgia;
    font-size: 50px;
  }

  .contact-font {
    font-family: Cursive;
  }

  .home-btn {
    float: left;
  }

  .btn-position {
    position: relative;
    margin-top: 20px;
    margin-left: 30px;
  }


</style>
